# 定义错误码常量
class ErrorCode:
    SUCCESS = 200
    INVALID_PARAMS = 400
    INTERNAL_ERROR = 500
    MODEL_ERROR = 501
    IMAGE_PROCESS_ERROR = 502

# 错误信息映射
ERROR_MESSAGES = {
    ErrorCode.SUCCESS: "Success",
    ErrorCode.INVALID_PARAMS: "Invalid parameters",
    ErrorCode.INTERNAL_ERROR: "Internal server error",
    ErrorCode.MODEL_ERROR: "Model inference error",
    ErrorCode.IMAGE_PROCESS_ERROR: "Image processing error"
} 